<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page contentType="text/html;charset=utf-8"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Usuarios por Beneficio</title>
  </head>
  <body>
 <%   
	String strnomBen = (String)request.getAttribute("Nombre");
	String codePrograma = (String)request.getAttribute("codePrograma");
	String codeSubprograma = (String)request.getAttribute("codeSubPrograma");
 %> 
  
    <P></P>
    <P></P>
    <table cellspacing="2" cellpadding="1" border="0" width="80%" align="center">
      <tr>
        <td class="celdatabla">
          <DIV align="right">
            <STRONG>Beneficio</STRONG> 
          </DIV>
</td>
        <td>
          <DIV align="center">
            <input type="text" name="Ben" class="form" value="<%=strnomBen%>" maxlength="100" size="100"/>
          </DIV>
        </td>
      </tr>
    </table>
    
    <table  cellspacing="3" cellpadding="2" border="0" width="90%" align="center">
  <tr>
  <td>
  <logic:notPresent scope="request" name="Usuarios">
        <DIV align="center"><%=request.getAttribute("msg")%></DIV>
    </logic:notPresent>
    <logic:present scope="request" name="Usuarios"> 
  <display:table name="requestScope.Usuarios" class="bordesTable"  id="usu" cellpadding="3" cellspacing="1"  style="width:100%">
     <display:column headerClass="headerTable" title="Usuario" class="Numero" sortable="false">
        <bean:write name="usu" property="nombreUsuario"/> 
     </display:column>   
     <display:column headerClass="headerTable" title="Programa" class="Numero" sortable="false">
        <bean:write name="usu" property="nombrePrograma"/> 
     </display:column>
     <display:column headerClass="headerTable" title="Beneficio" class="Numero" sortable="false">
        <bean:write name="usu" property="nombreSubprograma"/> 
     </display:column>
  </display:table> 
  </logic:present>
  </td>
  </tr>
  </table>
  <P></P>
  <table cellspacing="1" cellpadding="2" border="0" width="80%">
    <tr>
      <td>
        <DIV align="center">
          <a href="javascript:window.history.back()">
            <img src="<%=request.getContextPath() + "/images/BACK1-1.gif"%>" border="0"/>
          </a>
        </DIV>
      </td>
      <form name="asignarUsuario" action="<%=request.getContextPath() + "/Sedes/UsuarioSubprograma.do"%>">
          <input type="hidden" name="codePrograma" value="<%=codePrograma%>">
          <input type="hidden" name="codeSubPrograma" value="<%=codeSubprograma%>">
          <td align="left" width="50%">
              <input type="submit" value="Asignar Usuario"/>
          </td>
      </form>
    </tr>
  </table>
  <P></P>
  </body>
</html>

